package com.u3k.mid;

import android.content.Context;
import android.text.TextUtils;
import com.u3k.app.mid.utils.statistics.StatisticsManager;

public class am {
    public static String a(Context context) {
        try {
            int intValue = ((Integer) bb.b(context, "domain_fail", Integer.valueOf(0))).intValue();
            String str = (String) bb.b(context, "domain", "");
            if (!TextUtils.isEmpty(str) && str.startsWith("http") && intValue < 4) {
                return str;
            }
        } catch (Exception e) {
            StatisticsManager.getInstance().logException(ae.a(), e);
        }
        return "https://api.unmdabd.u178881507.com";
    }
}
